import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

let router = new Router({
  routes: [
    {
      path: '/',
      redirect: '/list/file'
    },
    {
      path: '/list/file',
      name: 'file-share-list-page',
      component: require('@/components/FileShareListPage').default
    },
    {
      path: '/list/text',
      name: 'text-share-list-page',
      component: require('@/components/TextShareListPage').default
    },
    {
      path: '/add/file',
      name: 'file-add-page',
      component: require('@/components/FileAddPage').default
    },
    {
      path: '/add/text',
      name: 'text-add-page',
      component: require('@/components/TextAddPage').default
    },
    {
      path: '*',
      redirect: '/list/file'
    }
  ]
})

export default router;